package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

/**
 * @author cjr
 */
@Data
@Builder
public class VideoMyListResponse {
    @ApiModelProperty(value = "视频列表", dataType = "VideoMyListResponse.Video")
    private PageResponse2<Video> videoPage;

    @ApiModel("VideoMyListResponse.Video")
    @Data
    @Builder
    public static class Video {
        @ApiModelProperty("视频ID")
        private Integer roomId;
        @ApiModelProperty("封面")
        private String photo;
        @ApiModelProperty("标题")
        private String name;
        @ApiModelProperty("时间")
        private Long time;
        @ApiModelProperty("时长")
        private String videoDuration;

        @ApiModelProperty("播放量")
        private Long viewNum;
        @ApiModelProperty("点赞数")
        private Integer collectNum;
        @ApiModelProperty("评论数")
        private Integer commentNum;

        @ApiModelProperty(value = "视频详情（用于上下滑动）", dataType = "VideoMyListResponse.VideoDetail")
        private VideoDtail video;
    }

    @ApiModel("VideoMyListResponse.VideoDetail")
    @Data
    @Builder
    public static class VideoDtail {
        @ApiModelProperty("视频ID")
        private Integer roomId;
        @ApiModelProperty("直播名称")
        private String name;
        @ApiModelProperty("封面")
        private String photo;
        @ApiModelProperty("视频地址")
        private String videoUrl;

        @ApiModelProperty("是否已关注用户:0无 1已关注")
        private Integer userCollectFlag;
        @ApiModelProperty("用户当前直播ID")
        private Integer userCurrentRoomId;
        @ApiModelProperty("用户ID")
        private Integer userId;
        @ApiModelProperty("名片ID")
        private Integer cardId;
        @ApiModelProperty("名片头像")
        private String cardImg;
        @ApiModelProperty("名片名称")
        private String cardName;

        @ApiModelProperty("观看数")
        private Long viewNum;
        @ApiModelProperty("点赞数")
        private Integer collectNum;
        @ApiModelProperty("是否已点赞：1已点赞")
        private Integer collectFlag;
        @ApiModelProperty("评论数")
        private Integer commentNum;
    }
}
